package com.ldd.mybatis.mapper;

import com.ldd.mybatis.model.Dept;
import com.ldd.mybatis.model.DeptAndEmp;
import com.ldd.mybatis.model.EmpAndDept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface DeptMapper {
    Dept selectDeptById(int id);
    List<DeptAndEmp> selectDeptAndEmpById(String dName);

    Long countQuery();
    List<EmpAndDept> selectEmpAndDept();
//    List<Dept> selectAllDepts();
//    int insertDept(Dept Dept);
//    int updateDept(Dept Dept);
//    int deleteDeptById(int id);
}
